package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.AppVersion;
import com.weixing.mall.provider.model.query.AppVersionQuery;
import com.weixing.mall.provider.model.vo.cms.AppVersionVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * CMS模块-APP版本控制表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface AppVersionMapper extends BaseMapper<AppVersion> {
    /**
     * @Description 批量删除 <br/>
     * @author gjq
     * @date 2019/8/8 17:50
     * @param ids
     * @return void
     */
    void delAll(int[] ids);
    /**
     * @Description 查询app版本 <br/>
     * @author gjq
     * @date 2019/8/22 11:45
     * @param appVersionQuery
     * @return java.util.List<com.weixing.mall.provider.model.vo.cms.AppVersionVo>
     */
    IPage<AppVersionVo> selectListOfPage(@Param("pg") Page page, @Param("qs")AppVersionQuery appVersionQuery);

    AppVersion getLatest();

    AppVersion getLatest(@Param("appType") Integer appType, @Param("device") Integer device);
}